import React from 'react';
import { Form, Input } from 'antd';

/**
 * 隐藏字段，用于表单提交
 * @export
 * @param {*} { field, form ,initialValue}
 * @returns
 */
export default function FieldHidden({ field, initialValue, form }) {
    return (
        <Form.Item label="招聘渠道" style={{ display: 'none' }}>
            {form.getFieldDecorator(field, {
                initialValue
            })(<Input />)}
        </Form.Item>
    );
}
